import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  //引入全局SCSS文件
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "./src/assets/styles/index.scss";', //引入scss文件
      }
    }
  },
  server: {
    //启动时，自动打开浏览器
    open: '/',
  },
})
